<form method="post" name="frm_SelTown" onSubmit="return false;" action="{$apm.baseurl}rstobi/rstobi">
<div class="mt10 mb10">
	<p>{if $block_text}{$block_text}<br />{/if}
	<span class="color02">※10ヵ所まで選択できます。</span></p>
</div>

<div id="select_area02">
<ul>
{foreach from=$Mapping item=v name="sikuLoop"}
	<li><a href="#area{$smarty.foreach.sikuLoop.iteration}">{$v.SHIKUCHOUSON_NAME}</a></li>
{/foreach}
</ul>
</div>

{foreach from=$Mapping item=v name="sikuLoop"}
<div class="selectdetailbox"  id="area{$smarty.foreach.sikuLoop.iteration}">
	<div class="mt15"><p class="name">{$v.SHIKUCHOUSON_NAME}{if $v.SHIKUCHOUSON_HEYA_CNT > 0 && not $CityMore}（{$v.SHIKUCHOUSON_HEYA_CNT}件）{/if}</p></div>
</div>
<div  class="innerbox01">
	<div  class="innerbox02">
	{foreach from=$v.TOWN_DATA item=town name="townLoop"}
		{if $smarty.foreach.townLoop.iteration % 3 == 1}
		{if $smarty.foreach.townLoop.iteration+3 > $v.TOWN_DATA|@count && not $paging }<ul class="hr_none">{else}
		<ul>{/if}{/if}
{assign var="check" value=""}{* 再チェック判定 *}
{foreach from=$research_data.ReTownCd key="key" item="retowncd" name="loopName"}
{if $retowncd == $town.CHOUMEI_CD}
{assign var="check" value="checked "}
{/if}
{/foreach}
		<li>
			<input name="TownCd[]" type="checkbox" id="selectTown{$town.CHOUMEI_CD}" value="{$town.CHOUMEI_CD}" {if $town.REC_CNT == 0}disabled {/if}{$check}/>
			{if $town.REC_CNT != 0}{if $town.STATIC_URL == ""}<a href="javascript:SelCyo_Link('{$town.CHOUMEI_CD}');">{else}<a href="{$town.STATIC_URL}">{/if}{/if}
				{$town.CHOUMEI}{if $town.REC_CNT > 0 && not $CityMore}({$town.REC_CNT}件){/if}
			{if $town.REC_CNT != 0}</a>{/if}
		</li>
		{if $smarty.foreach.townLoop.iteration % 3 == 0 || $smarty.foreach.townLoop.last}</ul>{/if}
	{/foreach}
	</div>
</div>
{if $paging }
<!-- pagination -->
<div class="pagination">
<ul>
<li>{if $paging.page_before }<a href="{$paging.page_before}">&lt;&lt;</a>{else}&lt;&lt;{/if}</li><!--
{foreach from=$paging.page item=page name=pageLoop}
	{if $page.url != "" }--><li><a href="{$page.url}" style="cursor:pointer;text-decoration:none">{$page.page}</a></li><!--
	{else}--><li class="crt">{$page.page}</li><!--{/if}
{/foreach}
--><li>{if $paging.page_next }<a href="{$paging.page_next}">&gt;&gt;</a>{else}&gt;&gt;{/if}</li><!--
--></ul>
</div>
<!-- /pagination -->
{/if}
{/foreach}

<div id="search_render" class="mt15">
	<dl>
		<dt>検索結果表示：</dt>
		<dd>
			<ul>
				<li>
					<label><input name="dispCount" type="radio" id="radio" value="10" checked="checked" />
					10件ずつ</label></li>
				<li>
					<label><input type="radio" name="dispCount" id="radio2" value="20" />
					20件ずつ</label></li>
				<li class="last">
					<label><input type="radio" name="dispCount" id="radio3" value="30" />
					30件ずつ</label></li>
			</ul>
		</dd>
	</dl>
	<p class="btn f_r">
		<input name="imageField" type="image" class="rollImg" id="imageField" src="/common_new/img/btn_search_l.gif" alt="検索" onmouseover="this.src='/common_new/img/btn_search_l_ov.gif'" onmouseout="this.src='/common_new/img/btn_search_l.gif'" onclick="SelCyo()" />
	</p>
</div>
<div id="hiddenval">
{$hiddenTag}
</div>
</form>
